package httpgui;

import java.io.IOException;

import javafx.fxml.FXMLLoader;
import javafx.scene.layout.Pane;

public class PageTool {
	public static Pane getPaneFromFxml(String fxml) throws IOException {
		FXMLLoader fxmlLoader = new FXMLLoader();
		fxmlLoader.setLocation(PageTool.class.getResource(fxml));
		Pane pane = fxmlLoader.load();
		return pane;
	}
}
